package com.hui.blog_server.service.impl;

import com.hui.blog_server.entity.Music;
import com.hui.blog_server.mapper.MusicMapper;
import com.hui.blog_server.service.MusicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MusicServiceImpl implements MusicService {

    @Autowired
    private MusicMapper musicMapper;

    @Override
    public List<Music> getAllMusic() {
        return musicMapper.selectList(null);
    }
}
